<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>ΙΛΙΑΔΟΣ Α</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../classics.css" rel="stylesheet" type="text/css">
</head>
<?php


try {
	$db = new PDO('sqlite:Ilias.db3');
	$q = $db->query('SELECT DISTINCT max(number) FROM questions;');
	
	$tmp = $q->fetch();
	$max = $tmp['max(number)'];
	

	$db = NULL;
} catch (PDOException $e) {
    print "Error!: " . $e->getMessage() . "<br/>";
    die();
}

?>


<body>

<h1 align="center">ΙΛΙΑΔΟΣ Α</h1>
<div id="container">
<div id="center">
<form name="v01" action="QuesFlash.php" method="post">
<table align="center">
<tr>
<td>
<select name="line">

<?php

$n = 0;
for($n = 5; $n <= $max; $n += 5) {
	print "<option value=\"$n\"";
	if ($n == $max) {
		print " selected=\"selected\"";
	}
	print ">line $n</option>\n";
}
if ($n < $max) {
	print "<option value=\"$max\">line $max</option>\n";
}


?>
</select>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><input type="submit" value="Submit" /></td>
</tr>
</table>
</form>
</div>
</div>

</body>
</html>
